<template>
  <div class="insider-header">
    <el-page-header @back="goBack">
      <template #content>
        <span style="font-size: 14px;margin-right: 20px;"> {{ title || 11 }} </span>
        <span style="font-size: 12px;color: #909090">{{ desc }}</span>
      </template>
      <template #extra>
        <div class="flex items-center">
          <span style="font-size: 12px;color: #909090">{{ right }}</span>
        </div>
      </template>
    </el-page-header>
  </div>
</template>

<script setup>
import { defineProps } from 'vue'
import { useRouter } from 'vue-router'
const router = useRouter()
const props = defineProps({
  title: {
    type: String,
    default: () => {
      return '未知标题'
    },
    required: true
  },
  desc: {
    type: String,
    default: () => {
      return ''
    }
  },
  right: {
    type: String,
    default: () => {
      return ''
    }
  }
})
console.log(props)
const goBack = () => {
  router.go(-1)
}
</script>

<style lang="scss" scoped>
.insider-header {
  border-bottom: 1px solid $borderColor;

  :deep(.el-page-header__back) {
    &:hover {
      color: $blue;
    }
  }
}
</style>
